package com.campus.counseling.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.counseling.entity.PsychologicalTest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PsychologicalTestMapper extends BaseMapper<PsychologicalTest> {
    /**
     * 获取测试的维度列表
     */
    @Select("SELECT dimension_key as dimensionKey, dimension_name as dimensionName FROM test_dimensions WHERE test_id = #{testId}")
    List<Map<String, Object>> getTestDimensions(@Param("testId") Long testId);
} 